package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.MallSeller;

import java.util.*;
public class MallSellerExample extends SgExample<MallSellerExample.Criteria> {
    public static final Class<MallSeller> beanClass = MallSeller.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn sellerId;
    public static EntityColumn sellerName;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        sellerId = listMap.get("sellerId");
        sellerName = listMap.get("sellerName");
        }

    public MallSellerExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected MallSellerExample.Criteria createCriteriaInternal() {
        return new MallSellerExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public MallSellerExample.Criteria andSellerIdIsNull() {
            return isNull(sellerId);
        }

        public MallSellerExample.Criteria andSellerIdIsNotNull() {
            return isNotNull(sellerId);
        }

        public MallSellerExample.Criteria andSellerIdEqualTo(Long value) {
            return equalTo(sellerId, value);
        }

        public MallSellerExample.Criteria andSellerIdNotEqualTo(Long value) {
            return notEqualTo(sellerId, value);
        }

        public MallSellerExample.Criteria andSellerIdGreaterThan(Long value) {
            return greaterThan(sellerId, value);
        }

        public MallSellerExample.Criteria andSellerIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(sellerId, value);
        }

        public MallSellerExample.Criteria andSellerIdLessThan(Long value) {
            return lessThan(sellerId, value);
        }

        public MallSellerExample.Criteria andSellerIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(sellerId, value);
        }

        public MallSellerExample.Criteria andSellerIdIn(List<Long> values) {
            return in(sellerId, values);
        }

        public MallSellerExample.Criteria andSellerIdNotIn(List<Long> values) {
            return notIn(sellerId, values);
        }

        public MallSellerExample.Criteria andSellerIdBetween(Long value1, Long value2) {
            return between(sellerId, value1, value2);
        }

        public MallSellerExample.Criteria andSellerIdNotBetween(Long value1, Long value2) {
            return notBetween(sellerId, value1, value2);
        }
        public MallSellerExample.Criteria andSellerNameIsNull() {
            return isNull(sellerName);
        }

        public MallSellerExample.Criteria andSellerNameIsNotNull() {
            return isNotNull(sellerName);
        }

        public MallSellerExample.Criteria andSellerNameEqualTo(String value) {
            return equalTo(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameNotEqualTo(String value) {
            return notEqualTo(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameGreaterThan(String value) {
            return greaterThan(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameLessThan(String value) {
            return lessThan(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameLike(String value) {
            return like(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameNotLike(String value) {
            return notLike(sellerName, value);
        }

        public MallSellerExample.Criteria andSellerNameIn(List<String> values) {
            return in(sellerName, values);
        }

        public MallSellerExample.Criteria andSellerNameNotIn(List<String> values) {
            return notIn(sellerName, values);
        }

        public MallSellerExample.Criteria andSellerNameBetween(String value1, String value2) {
            return between(sellerName, value1, value2);
        }

        public MallSellerExample.Criteria andSellerNameNotBetween(String value1, String value2) {
            return notBetween(sellerName, value1, value2);
        }
    }
}